﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceProcess;
using System.IO;

namespace nwrole.service
{
    class Program
    {
        public static void Main (string[] args)
        {
            if (args.Length == 0)
                return;

            if (args[0] == "supervisor")
                ServiceBase.Run(new SupervisorService());
            else if (args[0] == "integration")
                ServiceBase.Run(new PluginService(new Guid(args[1]), Convert.ToInt32(args[2])));
        }
    }
}
